package com.hd.assistant.biz.util;

import java.util.HashMap;

public class PaipaiUtil {
	public static String APP_OAUTH_ID_ASSISTANT = "700136169";
	public static String SECRET_OAuth_Key_ASSISTANT = "acD85sAvmoNI9OwL";
	
	public static String APP_OAUTH_ID_ORDER = "700138309";
	public static String SECRET_OAuth_Key_ORDER = "i0Lja1IpXcXpWlqM";
	
	
	public static String APP_OAUTH_ID_SALE = "700151122";
	public static String SECRET_OAuth_Key_SALE = "MWI9c2X8xhYM7yRr";
	
	public static String APP_OAUTH_ID_SXJ = "700151119";
	public static String SECRET_OAuth_Key_SXJ = "1caAnWBScFYDDIVG";
	
	
	
	public static String PAIPAI_OAUTH_URL = "http://fuwu.paipai.com/my/app/authorizeGetAccessToken.xhtml?responseType=access_token&appOAuthID=";
	public static String getRedirectLoginUrl(String oauthId){
		return PAIPAI_OAUTH_URL+oauthId;
	}
	//存储cookie name  不同应用存不同
	public static HashMap<String,String> cookieMap = new HashMap<String, String>();
	public static HashMap<String,String> oauthKeysMap = new HashMap<String, String>();
	static{
		cookieMap.put(APP_OAUTH_ID_ASSISTANT+"", "q1id");//助手 q1id
		cookieMap.put(APP_OAUTH_ID_SXJ+"", "qsxjid");//助手 q1id
		
		oauthKeysMap.put(APP_OAUTH_ID_ASSISTANT, SECRET_OAuth_Key_ASSISTANT);
		oauthKeysMap.put(APP_OAUTH_ID_ORDER, SECRET_OAuth_Key_ORDER);
		oauthKeysMap.put(APP_OAUTH_ID_SXJ, SECRET_OAuth_Key_SXJ);
	}
}
